function CreateObj() {
    this.name ="Jack"
}

var myObj = new CreateObj()

console.log(myObj)

// CreateObj { name: 'Jack' }